import requests

# 百度搜索API的URL
url = 'https://www.baidu.com/s'

# 搜索参数
params = {
    'wd': 'python',  # 'wd' 参数是搜索词
}

# 发送请求
response = requests.get(url, params=params)

# 检查响应状态
if response.status_code == 200:
    print('请求成功')
    # 打印返回的结果
    print(response.text)
else:
    print('请求失败')